#pragma once
#include "CDependencyObject.h"

class CGridLength :
	public CDependencyObject
{

private: 
	CGridLength(CCoreServices * pCore);
	HRESULT FromString(CREATEPARAMETERS * pCreate);
	HRESULT FromValueGridLength(CREATEPARAMETERS * pCreate);
public: 
	static HRESULT Create(CDependencyObject * * ppObject, CREATEPARAMETERS * pCreate);
	static HRESULT Validate(struct XGRIDLENGTH * pGridLength);
	static HRESULT GridLengthFromString(XUINT32 cString, XUINT16 * pString, struct XGRIDLENGTH * peValue);
	virtual XINT32 DoesAllowMultipleAssociation();
	virtual XUINT32 GetTypeIndex() const;
	struct XGRIDLENGTH m_gridLength;
};
